package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.FreightStatusDaog;
import com.wntms.gps.pojo.FreightStatus;
import com.wntms.gps.service.IFreightStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 货运状态Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class FreightStatusServiceImpl implements IFreightStatusService
{
    @Autowired
    private FreightStatusDaog freightStatusDaog;

    /**
     * 查询货运状态
     * 
     * @param id 货运状态主键
     * @return 货运状态
     */
    @Override
    public FreightStatus selectFreightStatusById(Long id)
    {
        return freightStatusDaog.selectFreightStatusById(id);
    }

    /**
     * 查询货运状态列表
     * 
     * @param freightStatus 货运状态
     * @return 货运状态
     */
    @Override
    public List<FreightStatus> selectFreightStatusList(FreightStatus freightStatus)
    {
        return freightStatusDaog.selectFreightStatusList(freightStatus);
    }

    /**
     * 新增货运状态
     * 
     * @param freightStatus 货运状态
     * @return 结果
     */
    @Override
    public int insertFreightStatus(FreightStatus freightStatus)
    {
        return freightStatusDaog.insertFreightStatus(freightStatus);
    }

    /**
     * 修改货运状态
     * 
     * @param freightStatus 货运状态
     * @return 结果
     */
    @Override
    public int updateFreightStatus(FreightStatus freightStatus)
    {
        return freightStatusDaog.updateFreightStatus(freightStatus);
    }

    /**
     * 批量删除货运状态
     * 
     * @param ids 需要删除的货运状态主键
     * @return 结果
     */
    @Override
    public int deleteFreightStatusByIds(Long[] ids)
    {
        return freightStatusDaog.deleteFreightStatusByIds(ids);
    }

    /**
     * 删除货运状态信息
     * 
     * @param id 货运状态主键
     * @return 结果
     */
    @Override
    public int deleteFreightStatusById(Long id)
    {
        return freightStatusDaog.deleteFreightStatusById(id);
    }
}
